package com.xcity.pomelo.response;

import com.xcity.game.pet.Pet;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class PetStateResponse extends Response {

	private long id;
	private byte state;
	
	public PetStateResponse(int serial, Pet pet) {
		super(serial);
		this.id = pet.getId();
		this.state = (byte) pet.getState().ordinal();
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public byte getState() {
		return state;
	}

	public void setState(byte state) {
		this.state = state;
	}

}
